<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <title></title>
</head>
<body>
<div>我是盒子</div>
<script src="./jquery-1.12.4.js"></script>
<script>

//    var a = 'a b c d e f';
//    var c = [];
//    console.log(a);
//    for(var i in a){
//        if(a[i]!=' '){
//            c+=a[i];
//        }
//    }
//    console.log(c);
    var d = " asdg jkl";
    $.trim(d);
    console.log(d);
</script>
</body>
</html>